<?php
include_once './config.php';

// defining all constants
define('ROOT_DIR', $root_dir);
define('ROOT', "http://".$_SERVER["HTTP_HOST"].'/'.$root_dir);
define('DB_SERVER',$mysql_server);
define('DB_USER',$mysql_user);
define('DB_PASS',$mysql_password);
define('DB',$mysql_db);

// make it easy to load classes
function __autoload($classname) {
	$dir = 'class/';

	include_once $dir.strtolower($classname).'.php';
}

?>